package com.aspose.cells;

class zblv extends zcj {
   zblv(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = this.e.h();
      float var3 = this.e.i();
      float var4 = this.e.f();
      float var5 = this.e.g();
      return this.a(var2, var3, var4, var5);
   }

   private com.aspose.cells.b.a.b.a.ze a(float var1, float var2, float var3, float var4) {
      com.aspose.cells.b.a.b.a.ze var5 = new com.aspose.cells.b.a.b.a.ze();
      float var6 = 0.0F;
      float var7 = 0.0F;
      switch(this.e.l.a.size()) {
      case 1:
         if (((zak)this.e.l.a.get(0)).b() == 327) {
            var6 = com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) * var4 / 21600.0F;
            var7 = 0.0F * var3 / 21600.0F;
         } else {
            var6 = 2880.0F * var4 / 21600.0F;
            var7 = (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) - 10800.0F) * var3 / 21600.0F;
         }
         break;
      case 2:
         var6 = com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) * var4 / 21600.0F;
         var7 = (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) - 10800.0F) * var3 / 21600.0F;
         break;
      default:
         var6 = 2880.0F * var4 / 21600.0F;
         var7 = 0.0F * var3 / 21600.0F;
      }

      float var8 = var3 - 2.0F * Math.abs(var7);
      if (this.e.E() == this.e.D()) {
         if (var7 >= 0.0F) {
            var5.a(var1, var2 + var6, var1 + var8 / 2.0F, var2 - 2.0F * var6, var1 + 1.0F * var8 / 2.0F, var2 + 4.0F * var6, var1 + var8, var2 + var6);
            var5.a(var1 + var3, var2 + var4 - var6, var1 + 2.0F * Math.abs(var7) + 1.0F * var8 / 2.0F, var2 + var4 + 2.0F * var6, var1 + 2.0F * Math.abs(var7) + var8 / 2.0F, var2 + var4 - 4.0F * var6, var1 + 2.0F * Math.abs(var7), var2 + var4 - var6);
            var5.i();
         } else {
            var5.a(var1 + 2.0F * Math.abs(var7), var2 + var6, var1 + 2.0F * Math.abs(var7) + var8 / 2.0F, var2 - 2.0F * var6, var1 + 2.0F * Math.abs(var7) + var8 / 2.0F, var2 + 4.0F * var6, var1 + var3, var2 + var6);
            var5.a(var1 + var8, var2 + var4 - var6, var1 + var8 / 2.0F, var2 + var4 + 2.0F * var6, var1 + var8 / 2.0F, var2 + var4 - 4.0F * var6, var1, var2 + var4 - var6);
            var5.i();
         }
      }

      return var5;
   }
}
